package com.example.agriculyural.Observer;
import java.util.*;

// 环境数据类
public class EnvironmentData {
    private double soilMoisture;
    private double temperature;
    private double humidity;
    private double windSpeed;
    private double soilPH;

    public EnvironmentData(double soilMoisture, double temperature, double humidity, double windSpeed, double soilPH) {
        this.soilMoisture = soilMoisture;
        this.temperature = temperature;
        this.humidity = humidity;
        this.windSpeed = windSpeed;
        this.soilPH = soilPH;
    }

    // Getters
    public double getSoilMoisture() { return soilMoisture; }
    public double getTemperature() { return temperature; }
    public double getHumidity() { return humidity; }
    public double getWindSpeed() { return windSpeed; }
    public double getSoilPH() { return soilPH; }
}
